package cn.hznc.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 *
 * @Author：Administrator
 * @Date：2023/3/31 22:07
 */
@Getter
@Setter
@Table(name = "t_warehouse")
@TableName(value = "t_warehouse")
public class WarehouseEntity{

    /**
     * 主键
     */
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 货区编号
     */
    @Column(name = "goods_area_no", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "goods_area_no")
    private String goodsAreaNo;

    /**
     * 货区名
     */
    @Column(name = "goods_area_name", type = MySqlTypeConstant.VARCHAR, length = 100)
    @TableField(value = "goods_area_name")
    private String goodsAreaName;

    /**
     * 仓库类型
     */
    @Column(name = "type", type = MySqlTypeConstant.VARCHAR, length = 255)
    @TableField(value = "type")
    private String type;

    /**
     * 仓库编号
     */
    @Column(name = "number", type = MySqlTypeConstant.VARCHAR, length = 255)
    @TableField(value = "number")
    private String number;

    /**
     * 仓库名
     */
    @Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "name")
    private String name;

    /**
     * 库位数量
     */
    @Column(name = "location_number", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "location_number")
    private String locationNumber;

    /**
     * 库位数量
     */
    @Column(name = "sn_code", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "sn_code")
    private String snCode;

    /**
     * 行
     */
    @Column(name = "row", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "row")
    private String row;

    /**
     * 列
     */
    @Column(name = "column", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "column")
    private String column;

    /**
     * 已使用库存
     */
    @Column(name = "use_capacity", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "use_capacity")
    private Integer useCapacity;

    /**
     * 总库存
     */
    @Column(name = "total_capacity", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "total_capacity")
    private Integer totalCapacity;

    /**
     * 库存状态
     */
    @Column(name = "status", type = MySqlTypeConstant.TINYINT)
    @TableField(value = "status")
    private String status;

    /**
     * 负责人
     */
    @Column(name = "operator", type = MySqlTypeConstant.VARCHAR , length = 50)
    @TableField(value = "operator")
    private String operator;

    /**
     * 其它参数
     */
    @Column(name = "param", type = MySqlTypeConstant.TEXT)
    @TableField(value = "param")
    private String param;

    /**
     * 其它参数
     */
    @Column(name = "safety_inventory_configure_param", type = MySqlTypeConstant.TEXT)
    @TableField(value = "safety_inventory_configure_param")
    private String safetyInventoryConfigureParam;

    /**
     * 其它参数
     */
    @Column(name = "length", type = MySqlTypeConstant.INT , length = 5)
    @TableField(value = "length")
    private Integer length;

}
